<?php
namespace app\index\controller;
use think\App;
use think\captcha\Captcha;
use think\Controller;
class Verify extends Controller
{
    protected $code;

    public function __construct(App $app = null)
    {
        parent::__construct($app);
        $this->code=new Captcha([
            'length'=>4,
            'useCurve'=>false,
            'useNoise'=>false,
            'fontSize'=>30
        ]);
    }

    public function CreateCode(){
        return $this->code->entry();
    }
}